package com.dominator.utils.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
public class QuartzJob {
    public QuartzJob(){
        System.out.printf("quartz创建成功");
    }
    @Scheduled(cron = "*/5 * * * * ?")
    public void  work(){
        System.out.println("task is timering");
    }

    @Scheduled(cron = "*/10 * * * * ?")
    public void  run(){
        System.out.println("task2 is timering");
    }

    @Scheduled(cron = "*/20 * * * * ?")
    public void  run3(){
        System.out.println("task3 is timering");
    }
}
